//Team: T102-17 
//Members: wrr3hw/ William Rinaldi; atb3df/ Austin Beane; cea7dz/ Katie Aichholz; jpp7mt/Jessica Platter

package cs2110.virginia.edu.ghosthunter;

import android.app.Activity;
import android.content.Intent;
import android.content.pm.ActivityInfo;
import android.os.Bundle;
import android.view.Menu;
import android.view.MenuItem;


public class MainActivity extends Activity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_PORTRAIT);
        setContentView(R.layout.introscreen);
        Thread logoTimer = new Thread() {
        	public void run() {
        		try {
        			sleep(5000);
        			Intent startScreenIntent = new Intent("cs2110.virginia.edu.ghosthunter.STARTSCREEN");
        			startActivity(startScreenIntent);
        			
        		} catch (InterruptedException e) {
					// TODO Auto-generated catch block
					e.printStackTrace();
				}
        		
        		finally {
        			finish();
        		}
        	}
        };
        logoTimer.start();
    	}
}
